package wawi.actions;

import java.sql.Date;

import wawi.db.DbConnector;

public class ArtikelUmbuchung
{
	public final static int STATUS_IM_VERSAND = 0;
	public final static int STATUS_ANGEKOMMEN = 1;
	
	private int recid;
	private int ean;
	private int status;
	private int von; //Filiale
	private int nach; //Filiale
	private Date datum_start;
	private Date datum_ende;
	
	
	
	public ArtikelUmbuchung()
	{
		recid = -1;
		ean = -1;
		status = -1;
		von = -1;
		nach = -1;
		datum_start = null;
		datum_ende = null;
	}
	
	
	public int getRecid() {
		return recid;
	}
	public void setRecid(int recid) {
		this.recid = recid;
	}
	public int getEan() {
		return ean;
	}
	public void setEan(int ean) {
		this.ean = ean;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getVon() {
		return von;
	}
	public void setVon(int von) {
		this.von = von;
	}
	public int getNach() {
		return nach;
	}
	public void setNach(int nach) {
		this.nach = nach;
	}
	public Date getDatum_start() {
		return datum_start;
	}
	public void setDatum_start(Date datum_start) {
		this.datum_start = datum_start;
	}
	public Date getDatum_ende() {
		return datum_ende;
	}
	public void setDatum_ende(Date datum_ende) {
		this.datum_ende = datum_ende;
	}
	
	
	public ArtikelDetails getArtikelDetails()
	{
		return DbConnector.getInstance().getArtikelDetailsWithEan(ean);
	}
}
